package com.youseu.taoliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youseu.common.utils.PageUtils;
import com.youseu.taoliving.commodity.entity.SpuInfoEntity;
import com.youseu.taoliving.commodity.vo.SpuSaveVO;

import java.util.Map;

/**
 * 商品spu 信息
 *
 * @author tao
 * @email tao@gmail.com
 * @date 2024-08-06 15:16:09
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPageCondition(Map<String,Object> params);

    void saveSpuInfo(SpuSaveVO spuSaveVO);

    //保存spu基本信息
    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    //商品上/下架
    void up(Long spuId);
    void down(Long spuId);
}

